
package edu.tgc.web.form.system;

import java.util.HashSet;
import java.util.Set;
import java.util.UUID;

import org.abyss.common.web.controller.CommonCrudController.createValidate;
import org.abyss.common.web.controller.CommonCrudController.updateValidate;
import org.abyss.common.web.form.easyui.CommonEasyuiWebForm;

import edu.tgc.web.form.system.validation.ValidateDescription;
import edu.tgc.web.form.system.validation.ValidateName;

public class SysRoleForm extends CommonEasyuiWebForm<UUID> {

    @ValidateDescription(groups = { createValidate.class, updateValidate.class })
    protected String description;
    protected Boolean enabled = true;
    @ValidateName(groups = { createValidate.class, updateValidate.class })
    protected String name;
    protected Set<String> permissionIds = new HashSet<>();
    protected Integer sort = 1;

    public String getDescription() {
        return this.description;
    }

    public Boolean getEnabled() {
        return this.enabled;
    }

    public String getName() {
        return this.name;
    }

    public Set<String> getPermissionIds() {
        return this.permissionIds;
    }

    public Integer getSort() {
        return this.sort;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPermissionIds(Set<String> permissionIds) {
        this.permissionIds = permissionIds;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

}
